package com.bean;

import java.sql.Connection;
import java.sql.DriverManager;

/**
 * @Author: tgy
 * @Date: 2020-07-31 16:00
 */
public class CustomStaticFactoryBean {

    public static Connection getConnection() throws Exception{

        Class.forName("com.mysql.cj.jdbc.Driver");
        Connection connection = DriverManager.getConnection("jdbc:mysql://47.99.51.246:3306/crud?useSSL=false", "option", "oqu_aiy8vaey<oGho1baw0ye");
        return  connection;
    }
}
